
import UIKit
import ObjectMapper

open class BaseModel: NSObject, Mappable,Identifiable,ObservableObject {
    var errorno: Int?    
    var error: String?
    public var id = UUID()
    
    var isCache: Bool = false
//    var hasMoreData: Bool = true
    
    public override init() {
        
    }
    
//    @discardableResult
//    convenience init(hasMoreData: Bool = true) {
//        self.init()
//        self.hasMoreData = hasMoreData
//    }
    
    required public init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        errorno     <- map["errorno"]
        error     <- map["error"]
    }
}
